export const workOrderOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  editBtn: false,
  viewBtn: false,
  delBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '工单号',
      prop: 'workOrderNo'
    },
    {
      label: '工单类型',
      prop: 'type',
      type: 'select',
      dicUrl: '/api/blade-system/dict/dictionary?code=order_type',
      props: {
        label: 'dictValue',
        value: 'dictKey'
      }
    },
    {
      label: '产品编码',
      prop: 'productPartNo'
    },
    {
      label: '产品名称',
      prop: 'productPartName'
    },
    {
      label: '产品型号',
      prop: 'productPartModel'
    },
    {
      label: '生产批次',
      prop: 'lotNo'
    },
    {
      label: '工单计划数量',
      prop: 'planQuantity'
    },
    {
      label: '工单完工数量',
      prop: 'completedQuantity'
    },
    {
      label: '生产时间',
      prop: 'produceTime'
    }
  ]
};
export const deliveryOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '发货单号',
      prop: 'outboundOrderNo'
    },
    {
      label: '客户名称',
      prop: 'customerName'
    },
    {
      label: '客户编码',
      prop: 'customerCode'
    },
    {
      label: '发货地址',
      prop: 'deliveryAddress'
    },
    {
      label: '发货人员',
      prop: 'shipper'
    },
    {
      label: '发货时间',
      prop: 'deliveryTime'
    }
  ]
};
export const associationOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '产品序列号',
      prop: 'productSn'
    },
    {
      label: '外部序列号',
      prop: 'outerSn'
    },
    {
      label: '绑定时间',
      prop: 'bindingTime'
    }
  ]
};
export const passingStationInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '工单号',
      prop: 'workOrderNo',
      hide: false
    },
    {
      label: '工序名称',
      prop: 'routeName'
    },
    {
      label: '工序类型',
      prop: 'routeType',
      type: 'select',
      dicData: [
        {
          label: '过站工站',
          value: 'OVERSTATION'
        },
        {
          label: '组装工站',
          value: 'ASSEMBLY'
        },
        {
          label: '测试工站',
          value: 'TEST'
        },
        {
          label: '包装工站',
          value: 'PACKING'
        },
        {
          label: '老化工站',
          value: 'AGING'
        },
        {
          label: '报工工站',
          value: 'TIMESHEET'
        },
        {
          label: '上料工站',
          value: 'FEEDING'
        }
      ]
    },
    {
      label: '已过站数量',
      prop: 'passQuantity',
      hide: true
    },
    {
      label: '未过站数量',
      prop: 'waitingQuantity',
      hide: true
    },
    {
      label: '车间',
      prop: 'workshopName'
    },
    {
      label: '产线',
      prop: 'lineName'
    },
    {
      label: '设备',
      prop: 'equipments'
    },
    {
      label: '工位',
      prop: 'stationName'
    },
    {
      label: '操作人员',
      prop: 'operator'
    },
    {
      label: '过站时间',
      prop: 'transactionTime',
      hide: false
    }
  ]
};
export const assembleParentLevelInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '产品序列号',
      prop: 'productSn'
    },
    {
      label: '组装父级序列号',
      prop: 'assemblyParentSerialNumber'
    },
    {
      label: '父级产品编码',
      prop: 'parentProductPartNo'
    },
    {
      label: '父级产品型号',
      prop: 'parentProductPartModel'
    },
    {
      label: '组装时间',
      prop: 'assemblyTime'
    }
  ]
};
export const assemblySubLevelInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '产品序列号',
      prop: 'productSn'
    },
    {
      label: '组装子级序列号',
      prop: 'assemblySonSn'
    },
    {
      label: '子级产品编码',
      prop: 'sonProductPartNo'
    },
    {
      label: '子级产品型号',
      prop: 'sonProductPartModel'
    },
    {
      label: '组装时间',
      prop: 'assemblyTime'
    }
  ]
};
export const accessoriesInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '辅料类型',
      prop: 'indirectType',
      type: 'select',
      dicData: [
        {
          label: '锡膏',
          value: 'PACK_BARCODE'
        },
        {
          label: '胶水',
          value: 'GLUE_BARCODE'
        }
      ]
    },
    {
      label: '辅料批次',
      prop: 'indirectLotNo'
    },
    {
      label: '辅料条码',
      prop: 'indirectBarCode'
    },
    {
      label: '应用设备',
      prop: 'equipmentName'
    }
  ]
};
export const equipmentInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: true,
  indexLabel: '序号',
  column: [
    {
      label: '设备类型',
      prop: 'equipmentType'
    },
    {
      label: '设备编码',
      prop: 'equipmentCode'
    },
    {
      label: '设备型号',
      prop: 'equipmentModel'
    },
    {
      label: '设备品牌',
      prop: 'equipmentBrand'
    },
    {
      label: '车间',
      prop: 'workshopName'
    },
    {
      label: '产线',
      prop: 'lineName'
    }
  ]
};
export const packInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '包装条码',
      prop: 'packingSn'
    },
    {
      label: '包装数量',
      prop: 'packingQuantity'
    },
    {
      label: '包装时间',
      prop: 'packingTime'
    },
    {
      label: '操作人',
      prop: 'operator'
    }
  ]
};
export const inspectionInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '检验类型',
      prop: 'documentType'
    },
    {
      label: '检验单号',
      prop: 'documentNo'
    },
    {
      label: '检验时间',
      prop: 'examineDate'
    },
    {
      label: '报检数量',
      prop: 'inspectionQuantity'
    },
    {
      label: '检验数量',
      prop: 'examineQuantity'
    },
    {
      label: '检验人员',
      prop: 'examineBy'
    },
    {
      label: '检验结果',
      prop: 'examineResult'
    }
  ]
};
export const maintenanceInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '维修类型',
      prop: 'repairType'
    },
    {
      label: '不良登记时间',
      prop: 'ngCreateTime'
    },
    {
      label: '不良判定时间',
      prop: 'ngJudgeTime'
    },
    {
      label: '维修工序',
      prop: 'repairRouteName'
    },
    {
      label: '进维修时间',
      prop: 'incomingTime'
    },
    {
      label: '不良登记工序',
      prop: 'processRouteName'
    },
    {
      label: '不良现象',
      prop: 'ngPhenomenon'
    },
    {
      label: '不良原因大类',
      prop: 'ngCauseMainName'
    },
    {
      label: '不良原因小类',
      prop: 'ngCauseSubName'
    },
    {
      label: '维修员',
      prop: 'maintainer'
    },
    {
      label: '维修结果',
      prop: 'results'
    }
  ]
};
export const testInfoOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: false,
  indexLabel: '序号',
  column: [
    {
      label: '工序名称',
      prop: 'routeName',
      type: 'select',
      dicUrl: '/api/mes-product/apaasworkstation/workstation/list',
      props: {
        label: 'name',
        value: 'name'
      }
    },
    {
      label: '设备编码',
      prop: 'equipmentCode'
    },
    {
      label: '测试结果',
      prop: 'result',
      type: 'select',
      dicData: [
        {
          label: 'PASS',
          value: 'PASS'
        },
        {
          label: 'FAIL',
          value: 'FAIL'
        }
      ]
    },
    {
      label: '过站时间',
      prop: 'operationTime',
      format: 'yyyy-MM-dd HH:mm:ss',
      valueFormat: 'yyyy-MM-dd HH:mm:ss'
    }
  ]
};
export const warehouseUsePartOption = {
  height: 250,
  calcHeight: 30,
  border: true,
  index: true,
  selection: false,
  addBtn: false,
  editBtn: false,
  delBtn: false,
  refreshBtn: false,
  columnBtn: false,
  menu: true,
  indexLabel: '序号',
  column: [
    {
      label: '物料编码',
      prop: 'partNo'
    },
    {
      label: '物料名称',
      prop: 'partName'
    },
    {
      label: '物料品牌',
      prop: 'partBrand'
    },
    {
      label: '物料型号',
      prop: 'partModel'
    },
    {
      label: 'D/C',
      prop: 'dateCode'
    },
    {
      label: '物料内部批次',
      prop: 'lotNo'
    },
    {
      label: '发料数量',
      prop: 'issueQuantity'
    }
  ]
};
